#turnorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
}

#turnorder pre {
  font-family: monospace;
  font-size: 12px;
  color: #999;
}

#turnorder .description {
  padding-top: 50px;
  padding-bottom: 30px;
}

#turnorder .table-interior {
  position: absolute;
  margin-left: -3.2em;
  margin-top: -0.85em;
}

#turnorder .player-container {
  position: relative;
  margin: 100px;
  width: 16em;
  height: 16em;
  border-radius: 50%;
  background: #eaeaea;
  border: 5px solid #aaa;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.turnorder-options {
  display: flex;
  flex-direction: row;
}

.turnorder-options div {
  cursor: pointer;
  font-size: 12px;
  padding: 10px;
  border-bottom: 3px solid #aaa;
}

.turnorder-options div:hover {
  background: #efefef;
}

.turnorder-options div.active {
  background: #efefef;
  border-bottom-color: #555;
}

#turnorder .controls {
  position: absolute;
  margin-top: 50px;
  margin-left: -47px;
}

#turnorder .controls button {
  width: 80px;
  margin-bottom: 5px;
}

#turnorder .player {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -1.5em;
  width: 3em;
  height: 3em;
  line-height: 2.75em;
  border-radius: 50%;
  border-color: #aaa;
  border-style: dashed;
  box-sizing: border-box;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

#turnorder .player.current {
  background: #555;
  color: #eee;
}

#turnorder .player.active {
  border-style: solid;
}

#turnorder .phase {
  display: inline-block;
  background: #555;
  color: #eee;
  padding: 5px;
  margin-left: 10px;
}

#turnorder .bgio-client {
  padding: 0 !important;
}

.player-container span > .bgio-client:nth-child(1) .player-wrap {
  transform: rotate(0deg) translate(12em) rotate(-0deg);
}
.player-container span > .bgio-client:nth-child(2) .player-wrap {
  transform: rotate(60deg) translate(12em) rotate(-60deg);
}
.player-container span > .bgio-client:nth-child(3) .player-wrap {
  transform: rotate(120deg) translate(12em) rotate(-120deg);
}
.player-container span > .bgio-client:nth-child(4) .player-wrap {
  transform: rotate(180deg) translate(12em) rotate(-180deg);
}
.player-container span > .bgio-client:nth-child(5) .player-wrap {
  transform: rotate(240deg) translate(12em) rotate(-240deg);
}
.player-container span > .bgio-client:nth-child(6) .player-wrap {
  transform: rotate(300deg) translate(12em) rotate(-300deg);
}
